package day06;

import java.util.Arrays;

public class P03ExceptionHandle2 {
    public static void main(String[] args) {
        int[] a = {1, 2, 3};
        // System.out.println(1/a[3]);
        int x = 0;
        try {
            x = 1 / 0;
            System.out.println(a[3]);
        } catch (ArithmeticException e) {
            System.out.println("发生除0错误");
            x = 3;

        } catch (Exception e) {
            System.out.println("系统异常错误！");
        }

    }
}
